package com.example.bakend.service;

import com.example.bakend.pojo.Book;
import com.example.bakend.pojo.PageInfo;
import com.example.bakend.pojo.Reader;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface ReaderService {
    PageInfo selectReaders(Integer pageNum, Integer pageSize);

    List<Reader> selectReaders();

    Reader selectReader(Integer id);

    Integer insertReader(Reader reader);

    Integer updateReader(Reader reader);

    Integer deleteReaders(List<Integer> ids);

    PageInfo getReaders(String name,
                        String gender,
                        String contact,
                        LocalDateTime updateTimeBegin,
                        LocalDateTime updateTimeEnd,
                        Integer pageNum,
                        Integer pageSize);

}
